# frozen_string_literal: true

source "https://rubygems.org"

# added gems
gem "logger"

gem "rspec-rails"
gem "simplecov", path: "../../.."

if defined?(JRUBY_VERSION)
  gem "activerecord-jdbcsqlite3-adapter", "~> 61.0", platform: :jruby
else
  gem "sqlite3", "~> 1.4"
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem "rails", "~> 6.1.0"
# Use Puma as the app server
gem "puma", "~> 5.0"
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem "jbuilder", "~> 2.7"
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", ">= 1.4.4", require: false

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem "byebug", platforms: %i[mri mingw x64_mingw]
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem "web-console", ">= 4.1.0"
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem "spring"
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem "capybara", ">= 3.26"
  # 'selenium-webdriver' and 'webdrivers' did not work with Ruby 3.0 at the
  # moment this file was updated. Since they are not needed to run
  # SimpleCov's specs, they have been commented out
  # gem 'selenium-webdriver'
  # Easy installation and use of web drivers to run system tests with browsers
  # gem 'webdrivers'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]

gem "bigdecimal" if RUBY_VERSION >= '3.4'
gem "mutex_m" if RUBY_VERSION >= '3.4'
gem "drb" if RUBY_VERSION >= '3.4'
